package backend.message;

import java.io.Serializable;

public class Message implements Serializable{

	private static final long serialVersionUID = 4733282376065830666L;
	private byte[] obj;
	private String tag;
//	private long length;

	public Message(){
		
	}
	
	public Message(byte[] obj ,String tag){
		this.obj = obj;
		this.tag = tag;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public byte[] getObj() {
		return obj;
	}
	public void setObj(byte[] obj) {
		this.obj = obj;
	}
	public long getLength() {
		return obj!=null?this.getObj().length:0;
	}
	
}
